    <div class="complex">
        <span class="label">
            <?php echo Yii::t('ui', 'Options'); ?>
        </span>
        <div class="panel">
            <table class="templateFrame grid" cellspacing="0">
                <thead class="templateHead">
                    <tr>
                        <td>
                            <?php //echo $form->labelEx(Options::model(),'id');?>
                        </td>
                        <td>
                            <?php //echo $form->labelEx(Options::model(),'name');?>
                        </td>
                        <td colspan="2">
                            <?php //echo $form->labelEx(Person::model(),'eyecolor_code');?>
                        </td>
                    </tr>
                </thead>
                <tfoot>
                    <tr>
                        <td colspan="4">
                            <div class="add"><?php echo Yii::t('ui','New');?></div>
                            <textarea class="template" rows="0" cols="0">
                                <tr class="templateContent">
                                    <td>
                                        <?php echo CHtml::textField('Options[{0}][id]','',array('style'=>'width:100px')); ?>
                                    </td>
                                    <td>
                                        <?php echo CHtml::textField('Options[{0}][name]','',array('style'=>'width:100px')); ?>
                                    </td>
                                    <td>
                                        <?php //echo CHtml::dropDownList('Options[{0}][eyecolor_code]','',Lookup::items('eyecolor'),array('style'=>'width:100px','prompt'=>'')); ?>
                                    </td>
                                    <td>
                                        <div class="remove"><?php echo Yii::t('ui','Remove');?></div>
                                        <input type="hidden" class="rowIndex" value="{0}" />
                                    </td>
                                </tr>
                            </textarea>
                        </td>
                    </tr>
                </tfoot>
                <tbody class="templateTarget">
                <?php foreach($model as $i=>$model): ?>
                    <tr class="templateContent">
                        <td>
                            <?php echo $form->textField($model,"[$i]id",array('style'=>'width:100px')); ?>
                        </td>
                        <td>
                            <?php echo $form->textField($model,"[$i]name",array('style'=>'width:100px')); ?>
                        </td>
                        <td>
                            <?php //echo $form->dropDownList($model,"[$i]eyecolor_code",Lookup::items('eyecolor'),array('style'=>'width:100px','prompt'=>'')); ?>
                        </td>
                        <td>
                            <div class="remove"><?php echo Yii::t('ui','Remove');?>
                            <input type="hidden" class="rowIndex" value="<?php echo $i;?>" />
                        </td>
                    </tr>
                <?php endforeach; ?>
                </tbody>
            </table>
        </div><!--panel-->
    </div><!--complex-->
